import React, { PureComponent } from 'react'
import { StyleSheet, View, Text, Button, ActivityIndicator } from 'react-native'
import { Storage } from '../../utils';
export default class MainSceen extends PureComponent {
    static navigationOptions = {
        title: null,
        header: null
    }
    render() {
        return <View style={styles.container}>
            <Text>首页</Text>
            <Button title='注销' onPress={() => {
                Storage.remove('userInfo');
                this.props.navigation.navigate('Login');
            }} />
            <Button title='打开抽屉' onPress={() => {
                this.props.navigation.navigate('UserFunctions');
            }} />
        </View>
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        alignItems: 'center',
        justifyContent: 'center',
    },
})

